package cn.buk.tms.dto;

import cn.buk.tms.common.dto.CustomerDto;

/**
 * 用于报表的基础Dto
 * @author william
 *
 */
public class ReportBaseDto {

	/**
	 * 0 - 散客
	 * 1 - 月结客户
	 */
	private int customerType;

	private Integer customerId;

	/**
	 * customerType == 1 时，有值
	 */
	private CustomerDto customer;

	/**
	 * 订票人
	 */
	private String op1;

	/**
	 * 出票人
	 */
	private String op2;

	/**
	 * 审核人
	 */
	private String op3;

	public ReportBaseDto(String op1, String op2, String op3, Integer customerType, Integer customerId) {
		this.op1 = op1;
		this.op2 = op2;
		this.op3 = op3;

		this.customerType = customerType == null ? 1 : customerType;
		this.customerId = customerId;
	}


	public int getCustomerType() {
		return customerType;
	}

	public void setCustomerType(int customerType) {
		this.customerType = customerType;
	}

	public int getCustomerId() {
		return customerId == null ? 0 : customerId;
	}

	public void setCustomerId(Integer customerId) {
		this.customerId = customerId;
	}

	public CustomerDto getCustomer() {
		return customer;
	}

	public void setCustomer(CustomerDto customer) {
		this.customer = customer;
	}

	public String getOp1() {
		return op1;
	}

	public void setOp1(String op1) {
		this.op1 = op1;
	}

	public String getOp2() {
		return op2;
	}

	public void setOp2(String op2) {
		this.op2 = op2;
	}

	public String getOp3() {
		return op3;
	}

	public void setOp3(String op3) {
		this.op3 = op3;
	}
}
